$(document).ready(function() {
	$('.wgcode').click(function() {
		var code = this.innerHTML;
		copyText(code);
		//this.innerHTML = '<input type="text" value="' + code + '" class="fullwidth" onblur="closeWgSelect(this)" />'
	});
});
function copyText(text) {
	//alert(text);
	//if (!document.all) return; // IE only
	/*
	theForm = theSel.form;
	theForm.copyArea.value=theSel.options[theSel.selectedIndex].value;
	r=theForm.copyArea.createTextRange();
	r.select();
	*/
	//text.execCommand('copy');
} 